package cn.s1995.sloth.bizs.oo.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * ChangeCartREQ
 *
 * @author Lex
 * @description
 * @date 2023/12/23 17:59
 */
@Data
@Schema(description = "更新购物车REQ")
public class ChangeCartREQ {

    /**
     * 购物车ID
     */
    @Schema(description = "购物车ID")
    private Long cartId;

    /**
     * 产品ID
     */
    @NotNull(message = "产品ID不能为空")
    @Schema(description = "产品ID")
    private Long prodId;

    /**
     * skuId
     */
    @NotNull(message = "skuId不能为空")
    @Schema(description = "skuId")
    private Long skuId;

    /**
     * 店铺ID
     */
    // @NotNull(message = "店铺ID不能为空")
    @Schema(description = "店铺ID")
    private Long shopId;

    /**
     * 产品增加数(当t为正值时，增加产品数量，当为负值时，将减去产品的数量，当最终值小于0时，会将产品从购物车里面删除)
     */
    @NotNull(message = "产品个数不能为空")
    @Schema(description = "产品增加数(当为正值时，增加产品数量，当为负值时，将减去产品的数量，当最终值小于0时，会将产品从购物车里面删除)")
    private Integer num;

    // @Schema(description = "分销推广人卡号" )
    // private String distributionCardNo;
}
